<#assign base=request.contextPath>
<!DOCTYPE html> 
<html>
	<head>
		<title>${title}</title>
		<meta charset="utf-8">
		<#include "common/reference.ftl" />
	</head>
	<body class="${configs["skinName"]}">
		<div class="row">
		<#include "common/breadcrumb.ftl">
			<form id="form" role="form" class="form-horizontal" method="post" action="${base}/${form_action}">
				<div class="col-xs-12">
					<div class="widget-box">
						<div class="widget-body">
							<input type="hidden" name="roleId" id="roleId" value="${model.roleId}" >
							<div class="alert alert-warning">
								<strong>提示!</strong>
								角色名称不能为空
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">
									角色名称
								</label>
								<div class="col-sm-9">
									<input type="text" id="roleName" name="roleName" value="${model.roleName}" class="col-sm-6" maxlength="50">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">
									角色描述
								</label>
								<div class="col-sm-9">
									<input type="text" id="roleDesc" name="roleDesc" value="${model.roleDesc}" class="col-sm-6" maxlength="255">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">
									是否启用
								</label>
								<div class="col-sm-9">
									<input class="ace ace-switch ace-switch-7" type="checkbox" name="enabled" <#if model == null || model.enabled>checked="checked"</#if> >
									<span class="lbl"></span>
								</div>
							</div>
							<div class="clearfix form-actions">
								<div class="col-md-offset-3 col-md-9">
									<button id="btnSubmit" class="btn btn-info" type="submit">
										<i class="fa fa-check bigger-110"></i>
										提 交
									</button>
								</div>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</body>
</html>